package com.zhongchaowuye.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import com.zhongchaowuye.pojo.B_GZ;
import com.zhongchaowuye.pojo.B_TZh;

@Mapper
@Repository("b_TZhDao")
public interface B_TZhDao 
{
	public int insertB_TZh(B_TZh b_TZh);//新增
	public int updateB_TZh(B_TZh b_TZh);//修改
	public int delB_TZh(B_TZh b_TZh);//删除
	public B_TZh getB_TZh(B_TZh b_TZh);//根据id获取B_TZh对象信息
	public List<Map<String,Object>> getB_TZhList(B_TZh b_TZh);//查询列表
	
	public List<Map<String,Object>> getTjxx(B_TZh b_TZh);//根据指定的类别进行汇总统计数据
	public List<Map<String,Object>> getDjxx(B_TZh b_TZh);//根据指定的类别指定的食（物）品名称获取最近一次的进货价格数据
	
	public List<Map<String,Object>> getHzxx_meiri_leibie(B_TZh b_TZh);//每日按类别进行汇总统计
	public List<Map<String,Object>> getGhjg_tzh_gysh(B_TZh b_TZh);//取台账中各供应商各品类最近一次的供货价格（ghjg）
	public List<Map<String,Object>> getYltj(B_TZh b_TZh);//用于食（物）品用量统计报表
}
